Firs sort approach