Sorting demonstration - see source code for description

(Link to source code at base of page

Normal sort
flipper - - [05/Aug/1998:12:36:00 -0400] "GET /honeymoon/117.html HTTP/1.0" 200 351
flipper - - [15/Jul/1998:13:02:47 -0400] "GET /pub/graham/ HTTP/1.0" 200 6906
lecht - - [28/Jan/1999:08:40:33 +0000] "GET /index.html HTTP/1.0" 200 1476
magnet - - [05/Aug/1998:08:31:10 -0400] "GET /honeymoon/Pic116.jpg HTTP/1.0" 200 35248
magnet - - [15/Jul/1998:13:02:48 -0400] "GET /pub/graham/wellho.gif HTTP/1.0" 200 16805
sardine - - [21/Jul/1998:09:12:38 -0400] "GET /www/pub/bashful/page53 HTTP/1.0" 404 -
sardine - - [21/Jul/1998:09:12:51 -0400] "GET /pub/bashful/page53 HTTP/1.0" 404 -
seal - - [28/Jan/1999:09:31:18 +0000] "GET / HTTP/1.0" 304 0
sealion - - [18/Jul/1998:02:27:19 -0400] "GET / HTTP/1.0" 304 0
skate - - [21/Jul/1998:09:06:17 -0400] "GET /cgi-bin/pub/grumpy/trythis.pl HTTP/1.0" 200 36
skate - - [21/Jul/1998:09:06:47 -0400] "GET /cgi-bin/pub/grumpy/trythis.pl HTTP/1.0" 200 65
Reverse sort
skate - - [21/Jul/1998:09:06:47 -0400] "GET /cgi-bin/pub/grumpy/trythis.pl HTTP/1.0" 200 65
skate - - [21/Jul/1998:09:06:17 -0400] "GET /cgi-bin/pub/grumpy/trythis.pl HTTP/1.0" 200 36
sealion - - [18/Jul/1998:02:27:19 -0400] "GET / HTTP/1.0" 304 0
seal - - [28/Jan/1999:09:31:18 +0000] "GET / HTTP/1.0" 304 0
sardine - - [21/Jul/1998:09:12:51 -0400] "GET /pub/bashful/page53 HTTP/1.0" 404 -
sardine - - [21/Jul/1998:09:12:38 -0400] "GET /www/pub/bashful/page53 HTTP/1.0" 404 -
magnet - - [15/Jul/1998:13:02:48 -0400] "GET /pub/graham/wellho.gif HTTP/1.0" 200 16805
magnet - - [05/Aug/1998:08:31:10 -0400] "GET /honeymoon/Pic116.jpg HTTP/1.0" 200 35248
lecht - - [28/Jan/1999:08:40:33 +0000] "GET /index.html HTTP/1.0" 200 1476
flipper - - [15/Jul/1998:13:02:47 -0400] "GET /pub/graham/ HTTP/1.0" 200 6906
flipper - - [05/Aug/1998:12:36:00 -0400] "GET /honeymoon/117.html HTTP/1.0" 200 351
User defined sort - by line length
seal - - [28/Jan/1999:09:31:18 +0000] "GET / HTTP/1.0" 304 0
sealion - - [18/Jul/1998:02:27:19 -0400] "GET / HTTP/1.0" 304 0
lecht - - [28/Jan/1999:08:40:33 +0000] "GET /index.html HTTP/1.0" 200 1476
flipper - - [15/Jul/1998:13:02:47 -0400] "GET /pub/graham/ HTTP/1.0" 200 6906
sardine - - [21/Jul/1998:09:12:51 -0400] "GET /pub/bashful/page53 HTTP/1.0" 404 -
flipper - - [05/Aug/1998:12:36:00 -0400] "GET /honeymoon/117.html HTTP/1.0" 200 351
sardine - - [21/Jul/1998:09:12:38 -0400] "GET /www/pub/bashful/page53 HTTP/1.0" 404 -
magnet - - [05/Aug/1998:08:31:10 -0400] "GET /honeymoon/Pic116.jpg HTTP/1.0" 200 35248
magnet - - [15/Jul/1998:13:02:48 -0400] "GET /pub/graham/wellho.gif HTTP/1.0" 200 16805
skate - - [21/Jul/1998:09:06:17 -0400] "GET /cgi-bin/pub/grumpy/trythis.pl HTTP/1.0" 200 36
skate - - [21/Jul/1998:09:06:47 -0400] "GET /cgi-bin/pub/grumpy/trythis.pl HTTP/1.0" 200 65
User defined sort - by date stamp
flipper - - [15/Jul/1998:13:02:47 -0400] "GET /pub/graham/ HTTP/1.0" 200 6906
magnet - - [15/Jul/1998:13:02:48 -0400] "GET /pub/graham/wellho.gif HTTP/1.0" 200 16805
sealion - - [18/Jul/1998:02:27:19 -0400] "GET / HTTP/1.0" 304 0
skate - - [21/Jul/1998:09:06:17 -0400] "GET /cgi-bin/pub/grumpy/trythis.pl HTTP/1.0" 200 36
skate - - [21/Jul/1998:09:06:47 -0400] "GET /cgi-bin/pub/grumpy/trythis.pl HTTP/1.0" 200 65
sardine - - [21/Jul/1998:09:12:38 -0400] "GET /www/pub/bashful/page53 HTTP/1.0" 404 -
sardine - - [21/Jul/1998:09:12:51 -0400] "GET /pub/bashful/page53 HTTP/1.0" 404 -
magnet - - [05/Aug/1998:08:31:10 -0400] "GET /honeymoon/Pic116.jpg HTTP/1.0" 200 35248
flipper - - [05/Aug/1998:12:36:00 -0400] "GET /honeymoon/117.html HTTP/1.0" 200 351
lecht - - [28/Jan/1999:08:40:33 +0000] "GET /index.html HTTP/1.0" 200 1476
seal - - [28/Jan/1999:09:31:18 +0000] "GET / HTTP/1.0" 304 0
Added Date format is a demo of the date func.
1998-07-15:130247 .. flipper - - [15/Jul/1998:13:02:47 -0400] "GET /pub/graham/ HTTP/1.0" 200 6906
1998-07-15:130248 .. magnet - - [15/Jul/1998:13:02:48 -0400] "GET /pub/graham/wellho.gif HTTP/1.0" 200 16805
1998-07-18:022719 .. sealion - - [18/Jul/1998:02:27:19 -0400] "GET / HTTP/1.0" 304 0
1998-07-21:090617 .. skate - - [21/Jul/1998:09:06:17 -0400] "GET /cgi-bin/pub/grumpy/trythis.pl HTTP/1.0" 200 36
1998-07-21:090647 .. skate - - [21/Jul/1998:09:06:47 -0400] "GET /cgi-bin/pub/grumpy/trythis.pl HTTP/1.0" 200 65
1998-07-21:091238 .. sardine - - [21/Jul/1998:09:12:38 -0400] "GET /www/pub/bashful/page53 HTTP/1.0" 404 -
1998-07-21:091251 .. sardine - - [21/Jul/1998:09:12:51 -0400] "GET /pub/bashful/page53 HTTP/1.0" 404 -
1998-08-05:083110 .. magnet - - [05/Aug/1998:08:31:10 -0400] "GET /honeymoon/Pic116.jpg HTTP/1.0" 200 35248
1998-08-05:123600 .. flipper - - [05/Aug/1998:12:36:00 -0400] "GET /honeymoon/117.html HTTP/1.0" 200 351
1999-01-28:084033 .. lecht - - [28/Jan/1999:08:40:33 +0000] "GET /index.html HTTP/1.0" 200 1476
1999-01-28:093118 .. seal - - [28/Jan/1999:09:31:18 +0000] "GET / HTTP/1.0" 304 0


Training sample © 2024, WELL HOUSE CONSULTANTS LTD
This is http://www.wellho.net/demo/dademo.php
See source code here • More examples - same topic here
Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
Phone: +44 (0) 1225 708 225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net