Skip to content

Commit

Permalink
update tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Mar 27, 2024
1 parent aaf5e7c commit 8160b07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MyApp.ServiceInterface/Data/DbExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static SqlExpression<Post> OrderByView(this SqlExpression<Post> q, string
view = view?.ToLower();
if (view is "popular" or "most-views")
q.OrderByDescending(x => x.ViewCount);
else if (view is "interesting" or "most-votes")
else if (view is null or "" or "interesting" or "most-votes")
q.OrderByDescending(x => x.Score);
else
q.OrderByDescending(x => x.Id);
Expand Down
2 changes: 1 addition & 1 deletion MyApp/Components/Pages/Questions/Tagged.razor
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

[Parameter] public required string Slug { get; set; }

static string[] Tabs = ["interesting", "popular", "newest"];
static string[] Tabs = ["relevance", "newest", "oldest"];

[SupplyParameterFromQuery] string? Tab { get; set; }

Expand Down

0 comments on commit 8160b07

Please sign in to comment.