X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom-plugins.git;a=blobdiff_plain;f=barijaona%2Fsort_reverse;fp=barijaona%2Fsort_reverse;h=bb55d15d9f46a40155fb2a524560ab00683b280b;hp=0000000000000000000000000000000000000000;hb=4c4feaf8c6669ba151bfa410370f348639cd3a43;hpb=92e394a494a24c61c574eee8fcbaa770bc434f29 diff --git a/barijaona/sort_reverse b/barijaona/sort_reverse new file mode 100644 index 0000000..bb55d15 --- /dev/null +++ b/barijaona/sort_reverse @@ -0,0 +1,31 @@ +# Plugin name: sort_reverse +# Author: Barijaona Ramaholimihaso +# Version: 2004-08-22blosxom2 +# Blosxom Home/Docs/Licensing: http://blosxom.sourceforge.net/ + +# Documentation: +# This is a pretty simple plugin; +# it simply sorts your entries in the chronological order +# (instead of the antichronological order usual to blogs) + +package sort_reverse; + +# --- Configurable variables ----- + +# (none) + +# -------------------------------- + +sub start { + 1; +} + +sub sort { + return sub { + my($files_ref) = @_; + return sort { $files_ref->{$a} <=> $files_ref->{$b} } keys %$files_ref; + }; +} + +1; +