diff --git a/modules/legacy/modules/device_management/lib/src/features/call_history/presentation/providers/call_history_provider.dart b/modules/legacy/modules/device_management/lib/src/features/call_history/presentation/providers/call_history_provider.dart index f4207fc9..e6d29dc4 100644 --- a/modules/legacy/modules/device_management/lib/src/features/call_history/presentation/providers/call_history_provider.dart +++ b/modules/legacy/modules/device_management/lib/src/features/call_history/presentation/providers/call_history_provider.dart @@ -9,7 +9,9 @@ Future> callHistory( Ref ref, String deviceIdentificator, ) async { - return ref + final calls = await ref .read(callHistoryDatasourceProvider) .getCallHistory(deviceIdentificator: deviceIdentificator); + calls.sort((a, b) => b.occurredAt.compareTo(a.occurredAt)); + return calls; }