Presorted lists

Presorted lists

Old forum URL: forums.lhotka.net/forums/t/10219.aspx


RaulLozano posted on Tuesday, March 29, 2011

Dumb question.

Is it normal practice for you to return a List with the items inside the list sorted to some predefined default sort order? Or is it normal practice for you to sort the list on the client all the time no matter what?

I know is up to me to do it however I want, I am simply curious to know what you guys do.

RockfordLhotka replied on Tuesday, March 29, 2011

If the user scenario requires or allows pre-sorted data, that is the way to go. Let the database do the work, because it is good at that.

If the user scenario requires client-side sorting (or resorting) that's fine too.

If you need to do paged data, then the sort really has to be server-side in order to do the paging.

Copyright (c) Marimer LLC