Also, you don't need the if/else - the only difference between the branches is the sortOrder value supplied to the status key.