SortEngine class
Constructors
SortEngine.configMulti (Duration timeScale , int maxEntries , double msWeight , double entryWeight )
A complex multi sorting engine with user-defined value curves.
SortEngine.entriesOnly ()
A simple engine that sorts entries based on how many times they've been
entered. This engine does not use any recency sorting.
SortEngine.manual (double scoreFunc (SortValue element ) )
You can manually define a function to score a given _SortValue
on a
scale of 0 to 1. A _SortValue
consists of msToNow
, which is how many
ms ago the entry was submitted, and numEntries
, how many times the entry
has been submitted.
SortEngine.msOnly ()
A simple engine that sorts entries based on how recently they've been
entered. This engine does not use any number-of-entries sorting.
SortEngine.simpleMulti (double msWeight , double entryWeight )
A simpler multi sorting engine with predefined value curves.
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited