fix toString() issue if data attribute does not exist
sort the items inside each letter container depending on the sort order