Closes #11 page sort bug