Ticket #7368 (closed enhancement: invalid)
Set index with index(number)
|Reported by:||anonymous||Owned by:||anonymous|
It would be nice if the index() method allowed you to set the index of the current element(s) also; currently you can only get the index of the first element relative to its siblings. index(0) would move all the elements before their siblings and index(-1) would move all elements after their siblings. And it would be even better if it wrapped, so that if there's three elements and you did index(3), it would place the element at the start.