You're right, this may work. But it fails on "ORDER BY".
For order by we can add field to database and extract startwith string and insert into related field
Example if i insert "Hello" => "asd2#E!@QDsd",also insert H character in field and
When i want to use order by,we can use Order By sStartWithField DESC
example table :
Name ID Phone sStartWidth Name ID Phone sStartWidth
asd@#asd @#asDD2 @#SDASDqd E => Erel 1 213123 E
DASd2!#!@ SFSDFSDf23 @#!QDQD!@ O => Omid 2 124123 O
Maybe?