added sorting, rmeoved olf cruft from web.py
can now sort by ID with web app