Sorting list of elements in JQuery
I have a list of elements that I get using JQuery. var $self = $(this); var $fields = $('.identifier-controls', $self); This list is the list of elements that need to be manipulated in some way when the control renders. Each element in the list of $fields contains a data attribute called "data-order". This attribute tells me what order I should arrange the elements with in the control (ah requirements). The order does not have to be in direct linear order (meaning that the first control can have an attribute value of 10 and the next one 15 and the next one 17 etc. They just need to appear in