I have this array result. i want it to be sorted ....
# suitescript
v
I have this array result. i want it to be sorted . how can i achieve this ? Please anyone can help me? [["35279925","35279932","35279930","35279928"]]
b
const arr = [["35279925","35279932","35279930","35279928"]]; arr[0].sort((a, b) => a - b); console.log(arr); -chatgpt
c
also depends on how you're getting the results. If those are search results, you can add a sort to the search column.