Update flavourpathinfo to use Blosxom::Debug.
[blosxom-plugins.git] / barijaona / sort_reverse
blobbb55d15d9f46a40155fb2a524560ab00683b280b
1 # Plugin name: sort_reverse
2 # Author: Barijaona Ramaholimihaso
3 # Version: 2004-08-22blosxom2
4 # Blosxom Home/Docs/Licensing: http://blosxom.sourceforge.net/
6 # Documentation:
7 # This is a pretty simple plugin;
8 # it simply sorts your entries in the chronological order
9 # (instead of the antichronological order usual to blogs)
11 package sort_reverse;
13 # --- Configurable variables -----
15 # (none)
17 # --------------------------------
19 sub start {
20     1;
23 sub sort {
24     return sub {
25       my($files_ref) = @_;
26       return sort { $files_ref->{$a} <=> $files_ref->{$b} } keys %$files_ref;
27     };