All the settings you in a view correspond to this specific view, so changes in sorting or even hiding of fields affect only the view you work in at the moment. If you want the grid view to has the same sorting like gallery view, then you have to set up those settings there as well.