Grid with sorting capability