aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/Inline__44___sort_and_show_-_is_it_possible_to_achieve_equivalent_to_tail_com...
diff options
context:
space:
mode:
authorkjs <kjs@web>2015-08-14 16:13:44 -0400
committeradmin <admin@branchable.com>2015-08-14 16:13:44 -0400
commit2552be0e190d0c6dc0a2a5412ebf002a7d5162eb (patch)
treebe58a567b14a0baa3060b2141b1a3ec4746079d1 /doc/forum/Inline__44___sort_and_show_-_is_it_possible_to_achieve_equivalent_to_tail_command.mdwn
parent7c8e8523ec537e39c96d9e9f908600e90b6f5593 (diff)
downloadikiwiki-2552be0e190d0c6dc0a2a5412ebf002a7d5162eb.tar
ikiwiki-2552be0e190d0c6dc0a2a5412ebf002a7d5162eb.tar.gz
Diffstat (limited to 'doc/forum/Inline__44___sort_and_show_-_is_it_possible_to_achieve_equivalent_to_tail_command.mdwn')
-rw-r--r--doc/forum/Inline__44___sort_and_show_-_is_it_possible_to_achieve_equivalent_to_tail_command.mdwn10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/forum/Inline__44___sort_and_show_-_is_it_possible_to_achieve_equivalent_to_tail_command.mdwn b/doc/forum/Inline__44___sort_and_show_-_is_it_possible_to_achieve_equivalent_to_tail_command.mdwn
new file mode 100644
index 000000000..9418f6767
--- /dev/null
+++ b/doc/forum/Inline__44___sort_and_show_-_is_it_possible_to_achieve_equivalent_to_tail_command.mdwn
@@ -0,0 +1,10 @@
+As per above. I'm using a inline to show most recent pages using meta(date). I want to limit the number of items to 20 but here is the catch I want to maintain chronological order. Kind of like using `sort -n | tail`.
+
+Showing the `n` oldest pages in chronological order starting with the first is easy just combine sort and show. Same thing goes for showing the `n` most recent pages in reverse chronological order.
+
+Can't figure out if what I want to do is doable.
+
+A bit of background:
+I'm using my [[tweaked img plugin|kjs]] to populate meta data from images. The meta date is set according to the image exif data. On the homepage I show thumbnails of the 20 most recent images. This is a site of family photos (why I can't share the link here) and such and it's a bit confusing to show all sequences in reverse. I.e first image shows all the presents opened then they repackage themselves and end up with ribbons.
+
+-[[kjs]]