Deutsche Telekom Interview Question

How to apply sorting on redis (cache)?