fix sorting on index page for production