Skip to content

Commit

Permalink
Use useful orderings in app
Browse files Browse the repository at this point in the history
  • Loading branch information
89netraM committed Oct 5, 2023
1 parent ad29ebd commit f2146d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/TimeKeep.App/ViewModels/AddEntryViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private async Task LoadProjects(CancellationToken ct)
return;
}

var response = client.List(new ProjectListRequest { Order = ProjectOrder.AlphaAsc }, cancellationToken: ct);
var response = client.List(new ProjectListRequest { Order = ProjectOrder.UsageDesc }, cancellationToken: ct);
await foreach (var project in response.ResponseStream.ReadAllAsync(ct))
{
Projects.Add(project);
Expand All @@ -111,7 +111,7 @@ private async Task LoadLocations(CancellationToken ct)
return;
}

var response = client.List(new LocationListRequest { Order = LocationOrder.NameAsc }, cancellationToken: ct);
var response = client.List(new LocationListRequest { Order = LocationOrder.UsageDesc }, cancellationToken: ct);
Locations.Add(null);
await foreach (var location in response.ResponseStream.ReadAllAsync(ct))
{
Expand Down

0 comments on commit f2146d4

Please sign in to comment.