refactor defaultOrder