Adds sorting! Very nasty.