Issue #5: Array.sort function is optional