0

My attendee_lastname column definition: enter image description here My sql:

SELECT attendee_lastname FROM oc_attendee ORDER BY attendee_lastname ASC

My Result:

enter image description here

I would expect lastname Abraham to be first? Any ideas?

2
  • 1
    I think that first letter is not latin 'A'. Check HEX(lastname). Commented Jun 21, 2023 at 9:02
  • Thank you Akina. Although that was not the problem, I did find the issue. The user typed a space before the last_name. So all those showing before Abraham had spaces in. Commented Jun 21, 2023 at 9:33

1 Answer 1

1

I found that the User typed in a space before their last_name. This resulted in all those starting with spaces to be first on the list and then the rest. After removing all spaces it works perfectly.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.