Fix accepted sort method