tagging: Allow using titles in for related stories.
[matthijs/upstream/blosxom-plugins.git] / barijaona / sort_reverse
1 # Plugin name: sort_reverse
2 # Author: Barijaona Ramaholimihaso
3 # Version: 2004-08-22blosxom2
4 # Blosxom Home/Docs/Licensing: http://blosxom.sourceforge.net/
5
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)
10
11 package sort_reverse;
12
13 # --- Configurable variables -----
14
15 # (none)
16
17 # --------------------------------
18
19 sub start {
20     1;
21 }
22
23 sub sort {
24     return sub {
25       my($files_ref) = @_;
26       return sort { $files_ref->{$a} <=> $files_ref->{$b} } keys %$files_ref;
27     };
28 }
29
30 1;
31