#288 closed feature (worksforme)
Expressions: sorting
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | core | Version: | |
Keywords: | sort expressions | Cc: | |
Blocked by: | Blocking: |
Description
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
comment:2 Changed 16 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
The new .sort method discussed on the mailing lists could do this, you just need to provide a custom function to sort by id.