server-side table sorting, instead of client-side

Change-Id: If9cbdfa61ed5bde5bb4437886a8b2d76e0ea19c8