Skip to content

Commit

Permalink
fix: sorting direction of URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Junk committed Nov 28, 2023
1 parent fd68986 commit 7fe94e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/feedview/feed/distributions/Distribution.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import { goto } from "$app/navigation";
export let distribution: Distribution;
const sortedFeeds = distribution.rolie.feeds.sort((entry1: any, entry2: any) => {
if (entry1.url < entry2.url) return 1;
if (entry1.url > entry2.url) return -1;
if (entry1.url < entry2.url) return -1;
if (entry1.url > entry2.url) return 1;
return 0;
});
/**
Expand Down

0 comments on commit 7fe94e9

Please sign in to comment.