fixed bug in GridView where not maintaining sort order