Fix sort order

* Sort order bug LF-4299