For example, i have a string array ['item 2','item 1','item 10','item 4']. I want it to be like this ['item 1','item 2','item 4','item 10'] but by default, the sort() function sorts values by alphabetical order, which means it will look like this ['item 1','item 10','item 2','item 4']