added bottom text, refined sorting