Skip to content

Commit

Permalink
Sort flows for view
Browse files Browse the repository at this point in the history
  • Loading branch information
durch committed Feb 28, 2024
1 parent e5c5517 commit ff84c97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/flow_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ export class FlowView extends ItemView {
(file) =>
file.path.startsWith("CloudAtlas/") &&
file.path.endsWith(".flow.md")
);
).map((f) => f.path.split("/")[1].split(".flow.md")[0]).sort();

console.debug(`Found ${cloudAtlasFlows.length} CloudAtlas flows`);

const ul = container.createEl("ul");
// Create commands for each flow
cloudAtlasFlows.sort().forEach((flowFile) => {
const flow = flowFile.path.split("/")[1].split(".flow.md")[0];
cloudAtlasFlows.forEach((flow) => {
const table = ul.createEl("table");
table.addClass("cloud-atlas-flow-table");
const tr = table.createEl("tr");
Expand Down

0 comments on commit ff84c97

Please sign in to comment.