Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
Sort by hour too
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovelinux committed Jun 29, 2022
1 parent c55eb44 commit a0b7d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/screens/home_tabs/bookings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class _BookingViewBody extends StatelessWidget {
}
}

upcoming.sort((a, b) => a.date.compareTo(b.date));
past.sort((a, b) => b.date.compareTo(a.date));
upcoming.sort((a, b) => a.toDateTime().compareTo(b.toDateTime()));
past.sort((a, b) => b.toDateTime().compareTo(a.toDateTime()));

return DefaultTabController(
length: 2,
Expand Down

0 comments on commit a0b7d73

Please sign in to comment.