sort json in a more sane way. it's ul's all the way down.