use proper base64 sorting for ints/strings