0

I am having a mysql table field with mixed values.Say,

1
2
Priya
Radha

If I sorts this in ascending order, the result will be displayed as shown above and if I sorts in descending order, the result will be

Radha
Priya
2
1

Here Mysql will give priority to numbers and then characters.

What to do, if I want Mysql to give priority to characters? ie, Sorting in ascending order should give a result like the one below:

Priya
Radha
1
2

Please help

1

1 Answer 1

1

I found this, maybe you can try it.

Sorting characters and numbers in mysql

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.