Use case or problem
Important note: This is based on the information available in the Functions Docu
Dataview has a hash function which can be used to create a pseudo-random string based on the input. This can then be used to sort the files in a random order.
Adding in some quantized time information allows that random order to change in a periodic interval. For example, the query code below sorts all notes in a random order which changes every hour, and shows me the first 10 results.
...
SORT hash(dateformat(date(now), "yyyy-MM-dd HH"), file.name)
LIMIT 10
It would be neat to have this option available in bases. It provides a way of looking at a set of notes in a unpredictable way, but is slow enough that you can work with it. And you can’t accidentally modify it, like you might be if there was a “randomly sort notes in base” functionality.
Proposed solution
Add a function hash() that hashes an input
Current workaround (optional)
Related feature requests (optional)
edit: formulated feature request, pressed ctrl+enter too soon