Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#288 closed feature (worksforme)

Expressions: sorting

Reported by: [email protected] 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 16 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 16 years ago by [email protected]

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