How to perform 'Sort Array' in JavaScript.
// Task: Sort Array
// Language: JavaScript
function sortArray() {
// Implementation for Sort Array
const result = ...; // Initialize variable
// TODO: Implement core logic here
// Step 1: Prepare data
// Step 2: Process Sort Array
console.log("Done");
}