I am trying to solve problem with sorting. As I´ve written to the title, I need to sort array by numbers, but when some rows have the same number, sort them by alphabet. I was trying to make this with two sorts, but when I use sort by numbers and than second one by alphabet, it doesn’t work.. So I’ve
Tag: custom-sort
Sort a 2d array by its name column but ignoring the names’ prefixes
I want to sort an array of rows by the name column value, but critically I want to sort while ignoring the users’ prefixes. Sample array: Desired result: My current code: Answer You make it clear in your comment that you originally have the name as firstname lastname, title, so you just need to sort first, then move the title