Sort by numeric field jq

Get 5 most recent events sorted by timestamp descending

jq 'sort_by(.timestamp) | reverse | .[0:5]' events.json
#jq