From: Leandro Lucarella Date: Mon, 30 Aug 2010 23:14:32 +0000 (-0300) Subject: Allow custom sorting when displaying several articles X-Git-Url: https://git.llucax.com/software/blitiri.git/commitdiff_plain/2635e6fa99f5b3e693262307437fe5d71c78fb38?ds=inline;hp=2635e6fa99f5b3e693262307437fe5d71c78fb38 Allow custom sorting when displaying several articles A new form variable is accepted, "sort", to allow custom sorting when several articles are rendered (default view, atom feed or list view). The sort variable uses a very simple sort specification format: [+-]?? Where "-" means reverse order, while "+" is regular, ascending, order. Field specifies what article field will be used when sorting; title, author, created, updated and uuid are accepted. Both values are optional, and when one is omitted, a default will be used according to the type of view being rendered. Note: since "+" is used to encode " " in URLs, " " is accepted as an alias for "+" to make easier to write URLs with sort specification manually. ---