Correct sort in web application

Sorting weeks and days in the web application was not correctly
implemented.  It should work now.