Arrange the following array in ascending order

I came across this array question in my Javascript interview and I couldn’t think the logic of it. There is an array of strings given and we have to arrange it in ascending order.

const arr = [‘sd101’, ‘zt099’, ‘tr134’, ‘gh234’, ‘cv056’];

Now we have to create a function which will take the arr as an argument and return the array in ascending order.
so the output should be [‘cv056’, ‘zt099’, ‘sd101’, ‘tr134’, ‘gh234’]

I couldn’t think of any logic for this.