Slightly better. Still not working. Fixed the sort key function to something that makes sense.