Using Aerospike’s Stream UDFs we can implement orderBy with limit, but can not implement pagination, this is because Aerospike Stream UDFs execute on all nodes, we can not do pagination in a sharding environment.
see this: Order by option - #9 by arganzheng