Welcome To Snipplr


Everyone's Recent Snippets Tagged sort



1 2 3 Next »
Probably not the most elegant solution, but it works. Needed this for a capistrano deploy task which shows the most recent tagged releases in my repository. Very bare bones, and needs tweaking if your versions are not in X.X.X.X format.
1 2088 posted 17 years ago by bananastalktome
0 1846 posted 17 years ago by traeregan
an external javascript sort function, which you can import into flash to help sort arrays of objects. include the script thus: #include "objSort.js"
2 2104 posted 17 years ago by stiobhart
This code replaces a normal category template. It sorts all posts by their category/subcategory instead of bunching them all together and ordering them by date. A bit complicated to explain in a box this size... Check the link for a run through!
1 2281 posted 17 years ago by rocktronica
Add this to your Utilities class and use it like Utilities.moveToTop(your_clip);
2 1909 posted 17 years ago by ozke
Put this before the loop in archive.php to have posts in the archive for category '26' sorted by custom field 'date'. Assign sortable values like '090501' or '2009-05-01' to those fields when editing posts and your Upcoming Events will be sorted by...
8 3479 posted 17 years ago by hussong
This is a function that selects files from a directory and orders them by the last time they were changed, in ascending or descending order. The snippet also calculates how much time passed since the file’s content was changed.
2 2984 posted 17 years ago by fackz
2 1665 posted 17 years ago by aflatter
This is a very simple bookmarklet that will temporarily sort the *visible* messages in Gmail by subject. You'll have to run it again each time Gmail refreshes the list. [Sort Gmail Messages](javascript:(function(){function%20f(r){var%20t=r...
0 2173 posted 17 years ago by wizard04
sorting a table through javascript
3 2151 posted 17 years ago by ginoplusio
0 1550 posted 17 years ago by iTony
jQuery Plugin for returning selected DOM Nodes in DOM order. e.g. $('img.L,img.Y') will not be guaranteed DOM order (usually all the L's then all the Y's). Currently only works with IE and FF (that's all I needed).
1 1893 posted 17 years ago by kouphax
This function will sort an array of DOM elements in order of the DOM position. Useful when using calls such as $$("img.L,img.M") which doesn;t return a sorted element array. It uses prototype but you can replace the Prototype.Browser stuff with a...
0 2206 posted 17 years ago by kouphax
0 1802 posted 17 years ago by iTony
I have fixed and improved some code I found on the Internet
1 1941 posted 18 years ago by ozke
I have fixed and improved some code I found on the Internet
1 2104 posted 18 years ago by ozke
Originally written by Erik Kastner (@kastner).
1 1812 posted 18 years ago by jrphelps
0 2288 posted 19 years ago by AlpT
1 2 3 Next »