Skip to content

Conversation

@artonge
Copy link
Contributor

@artonge artonge commented Feb 11, 2025

Local version of #2735 for CI

@artonge
Copy link
Contributor Author

artonge commented Feb 11, 2025

/compile amend /

@artonge artonge requested review from skjnldsv and susnux and removed request for skjnldsv February 11, 2025 16:06
Comment on lines +100 to +101
? fileInfo1[key].toString()?.localeCompare(fileInfo2[key].toString(), getLanguage(), { numeric: true })
: -fileInfo1[key].toString()?.localeCompare(fileInfo2[key].toString(), getLanguage(), { numeric: true })
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if -undefined makes sense. This is guaranteed to always be a string.

Suggested change
? fileInfo1[key].toString()?.localeCompare(fileInfo2[key].toString(), getLanguage(), { numeric: true })
: -fileInfo1[key].toString()?.localeCompare(fileInfo2[key].toString(), getLanguage(), { numeric: true })
? String(fileInfo1[key]).localeCompare(fileInfo2[key].toString(), getLanguage(), { numeric: true })
: -String(fileInfo1[key]).localeCompare(fileInfo2[key].toString(), getLanguage(), { numeric: true })

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From the original PR, it is to match nextcloud/photos#783, which makes sense to keep similar.

fracado and others added 2 commits February 12, 2025 15:50
Signed-off-by: Franziska Bath <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
@skjnldsv skjnldsv closed this Feb 14, 2025
@skjnldsv skjnldsv deleted the artonge/local/2735 branch February 14, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants