This is easy. All you have to do is select your list items then get
them as an array and then user javascript array's native sort method
like this:

var rows = $('ul#searchResults li').get();
rows.sort(function(a, b) {
  if (a.CustomProperty < b.CustomProperty) return -1;
  if (a.CustomProperty > b.CustomProperty) return 1;
  return 0;
});

Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com



On Fri, Jan 9, 2009 at 12:46 PM, Ajay <ajayn...@gmail.com> wrote:
>
> Hi all,
>
> I have a list of objects that I represent in a search result and I
> need following features.. on the search ressult page
>
> pagination.. filtering and sorting on basis of some parameters..
> e.g.
> http://tinyurl.com/7uldsd
>
> I found lot of plugins for doing all this in tables and representing
> sortable values in columns.. but I don't want to do that and want to
> represent the results in the list form as in the example URL
> Can any one point to some plugin or code using which I can do
> this.. ?? Any advice or pointers on how to go about doing this is also
> most welcome
>
>
> Thanks!

Reply via email to