SQL Regex for an Address -


i have address field populated like:

flat 1

flat 2

flat 2a

flat 3

as can see, entries numbers , others contain numbers , letters. sort them via numbers, letters - is, i'd ordered above.

currently this:

func1(regexp_substr(demiseunit, '^[0-9]+')) func2(regexp_substr(demiseunit, '[0-9]+$')) 

however, unfortunately causes flat 2a go bottom of list. appreciated.

if have "flat ##aa" can

order val(replace(demiseunit,"flat ","")), demiseunit 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -