Simple example to show how one could implement server-side sorting