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