WebUI: Implement server-side sorting.