flutter array sort code example Example: sort list dart List<int> nums = [13, 2, -11]; nums.sort(); print(nums); // [-11, 2, 13]