Skip to content

Commit

Permalink
experimenting with pre-defined order (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
theodoremoreland committed Nov 14, 2024
1 parent c012754 commit fc3cef4
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions app/src/contexts/ProjectsContext.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,25 @@ export const defaultOrder = (projects: RepoData[]): RepoData[] => {
if (projects.length === 0) return [];

const featuredProjectNames: string[] = [
"EssentialWorkers",
"OrderDashboard",
"BellyButtonBiodiversity",
"Blogz",
"Episodic",
"MovieIon",
"TopWine",
"MyMovieList",
"TypeRace",
"EssentialWorkers",
"ShelfCheck",
"REDB",
"WeatherDashboard",
"TypeRace",
"BellyButtonBiodiversity",
"JavaScriptQuiz",
"REDB",
"ShelfCheck",
"PortfolioExample",
"Blogz",
"TopWine",
"MovieIon",
"ScrabbleScorer",
"HawaiiClimateDataAPI",
"NodeJsQuiz",
"ScrabbleScorer",
].sort(() => Math.random() - 0.5); // Randomize order of first set of featured projects
"Episodic",
"MyMovieList",
];
//.sort(() => Math.random() - 0.5); // Randomize order of first set of featured projects

featuredProjectNames.push(
"html-me-something",
Expand Down

0 comments on commit fc3cef4

Please sign in to comment.