server: thrift getLayers should return them in sorted order