Bug Tracker

Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#288 closed feature (worksforme)

Expressions: sorting

Reported by: t22@… Owned by:
Priority: minor Milestone:
Component: core Version:
Keywords: sort expressions Cc:
Blocked by: Blocking:


I'd like to see jQuery Expressions with sorting support. XPath can't sort a resultset, so it has to be a custom expression. Something like: p_array = $("p/sort(@id)").get() to put all P elements in an array, sorted by their id (so actually, you should also specify whether to sort alphabetically or numerical etc).

Change History (2)

comment:1 Changed 14 years ago by dave.methvin

The new .sort method discussed on the mailing lists could do this, you just need to provide a custom function to sort by id.

comment:2 Changed 14 years ago by t22@…

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.