I have a table with wingNo and FlatNo.
WingNo FlatNo
A 001
A 002
B 1
A 101
etc
I need to order by WingNo & FlatNo in Asc order. Where WingNo & FlatNo both are String. The result should be:-
WingNo FlatNo
A 001
A 002
A 101
B 1
criteria.addOrder(Order.asc("wingNo"));
criteria.addOrder(Order.asc("flatNo"));
How can I use the order by with String filed treated as numbers?