I have this table:
==========================
id name
--------------------------
1 telephone
2 microphone
3 media
4 phone
I'm using findByNameContainingIgnoreCase(String letter) to get the data that contains the substring (pho). The results are:
==========================
id name
--------------------------
1 telephone
2 microphone
4 phone
But I want to also sort the output using the substring in the autosuggesting order. Like this:
==========================
id name
--------------------------
4 phone
1 telephone
2 microphone
Does anyone know how to help?