simplify sort, no base64, and was not working well with some entries