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