created the sort method on the soldier model