Welcome To Snipplr


Everyone's Recent Snippets Tagged sort



0 1639 posted 15 years ago by lafayette
0 1589 posted 15 years ago by mediapoint
Quite trivial but can be needed sometimes. At least I know where to look when i'll forget it
1 1412 posted 15 years ago by gandreini
0 1338 posted 15 years ago by albertoprb
0 1398 posted 15 years ago by takel
How to sort array in smarty template? >> Create sort modifier file and save it in smarty / plugins with modifier.sortby.php name use this modifier in smarty template like... {foreach item=item key=key from=$users|@sortby:"firstname"} {$item.i...
0 3359 posted 15 years ago by aashvi
Simple bash script that sorts a series of numeric parameters using a temporary file and sort command.
0 1252 posted 15 years ago by Hexx
searching for a date sort function I found: http://slevy1.wordpress.com/2010/06/30/sorting-date-strings-in-php/ and built my codeigniter helper call : $arrSortedDates = bubbleSort( $unsorted ); (previous->helper autoload)
0 1319 posted 15 years ago by lluisr
3 2013 posted 15 years ago by nohn
from: http://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/
0 1724 posted 15 years ago by edeustace
If on do nothing. If on make off. If off make on. Alter external value and focus.
0 1279 posted 15 years ago by davebowker
Orders a multi-dimensional field (such as sorting multiple $orders by field 'id')
0 1502 posted 15 years ago by jmiller
Incredibly useful. Great when you need to remove and add options to selectboxes.
0 1707 posted 15 years ago by Meander365
1 2024 posted 15 years ago by pauloiam
0 2850 posted 15 years ago by mrhoo
0 2719 posted 15 years ago by loric
Dictionaries cant be sorted, so you need to transform it into a list and sort that one!
0 1122 posted 15 years ago by magicrebirth
0 1355 posted 15 years ago by smashu
0 1475 posted 16 years ago by inkdeep
0 1616 posted 16 years ago by blackf0rk
Simple function that sorts a bi-dimensional array by one of it keys.
1 1798 posted 16 years ago by AlejoLuc
1 1293 posted 16 years ago by iaian7
This function takes a list of string and sorts them based on their similarity. The percent at which they match can be defined in the second parameter (default 75%).
0 1700 posted 16 years ago by gdvickery
This is based on the [Sort Gmail Messages By Bookmarklet](http://snipplr.com/view/10432/sort-gmail-messages-by-subject/ "Sort Gmail Messages By Bookmarklet - http://snipplr.com/view/10432/sort-gmail-messages-by-subject/") snippet. Drag this int...
1 1545 posted 16 years ago by roryok
Sample log line: [INFO] 2009-03-06 20:47:35 | controller::bla | user: vincentvega | ip: 127.0.0.1
0 1555 posted 16 years ago by benjay
A Functional quick sort (Java imperative version seems to be quicker).
0 1749 posted 16 years ago by narkisr