Skip to content

Commit 0b7035e

Browse files
authored
Merge pull request #4 from yanick/sorting
add a sorting option
2 parents d4f4d19 + bab3ec6 commit 0b7035e

File tree

3 files changed

+204
-192
lines changed

3 files changed

+204
-192
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,12 @@ const default_options = {
286286

287287
count: 20,
288288

289+
// optional sorting function for the entries.
290+
// Gets the array entries as the input, expects the sorted array
291+
// as its output.
292+
// e.g.: sort: entries => _.reverse( _.sortBy( entries, 'date' ) ),
293+
sort: entries => entries,
294+
289295
// ---------------------------------------------------------------------------
290296

291297
// supported - use in config as needed

0 commit comments

Comments
 (0)