Bug Tracker

Modify

Ticket #288 (closed feature: worksforme)

Opened 7 years ago

Last modified 6 years ago

Expressions: sorting

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

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

comment:1 Changed 7 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 7 years ago by t22@…

  • Status changed from new to closed
  • Resolution set to worksforme

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.