Add sorting to spreadsheet

ages are a bit broken somehow -- the values lag, despite a tweak to
displayAge -- and I just realized ages in the browser are completely
broken.