Return sorted db
Use destructive method to sort
Clarify variable roles