| // Restructure the array so that:
|
| // - Numbers come first (sorted ascending),
|
| // - strings come after (sorted ascending, case-insensitive),
|
|
|
| // Input
|
| let inputArr = [2, "b", 4, "D", 3, "a", "C", "e", 5, 1, 11, 22];
|
|
|
| // Expected output
|
| // [1, 2, 3, 4, 5, 11, 22, "a", "b", "C", "D", "e"]
|