Add an interface for sorting pages
Enable writing sorted shards in Raptor