Forgot to pass sort function to layouts in replicator.