Skip to content

Conversation

@Pytal
Copy link
Member

@Pytal Pytal commented Aug 16, 2024

Summary

  • Correctly sort nodes by natural order instead of order=0 i.e. creating a new folder always appended it to the bottom of the level instead of correct natural order
  • Render nodes by natural order as nodes returned from endpoint have an undefined order

Requires

Checklist

- Nodes are returned from the endpoint in an undefined order

Signed-off-by: Christopher Ng <[email protected]>
@Pytal Pytal force-pushed the fix/natural-order-tree branch from c1b04dc to 060783c Compare September 9, 2024 23:13
@Pytal Pytal marked this pull request as ready for review September 9, 2024 23:13
@Pytal Pytal requested a review from skjnldsv as a code owner September 9, 2024 23:13
@Pytal Pytal requested review from artonge and susnux September 9, 2024 23:14
@Pytal Pytal enabled auto-merge September 9, 2024 23:14
@Pytal
Copy link
Member Author

Pytal commented Sep 9, 2024

/compile


export const sourceRoot = `${davRemoteURL}/files/${getCurrentUser()?.uid}`

const collator = Intl.Collator(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe instead simply use orderBy from nextcloud files?

Signed-off-by: nextcloud-command <[email protected]>
@Pytal Pytal merged commit d4313c2 into master Sep 10, 2024
@Pytal Pytal deleted the fix/natural-order-tree branch September 10, 2024 08:00
@Pytal
Copy link
Member Author

Pytal commented Sep 10, 2024

/backport to stable30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants