Skip to content

Conversation

@brianteeman
Copy link
Contributor

This is a weird one and I cant say I fully understand it but this resolves the problem described below.

If you have a large number of files in a folder then when you look at the list of files in the tree you will see that they are not in alphabetical order. They are in alphabetical order "in groups" which is why you need more than usual files to see it.

To test copy a folder with a lot files to templates\protostar\html

I used this folder as a source administrator\components\com_templates\views\template\tmpl

Now when you view the file tree in the template component you will see the sorting is wrong as per screenshot from the middle of the list
image

Apply this PR and retest and the sorting is as expected as seen in this screenshot from the end of the list

image

This is a weird one and I cant say I fully understand it but this resolves the problem described below.

If you have a large number of files in a folder then when you look at the list of files in the tree you will see that they are not in alphabetical order. They are in alphabetical order "in groups" which is why you need more than usual files to see it.

To test copy a folder with a lot files to `templates\protostar\html`

I used this folder as a source `administrator\components\com_templates\views\template\tmpl`

Now when you view the file tree in the template component you will see the sirting is wrong as per screenshot

Apply this PR and retest and the sirting is as expected.
@brianteeman
Copy link
Contributor Author

NOTE: The same issue exists on J4 but as the fix is identical I assume there is no need for a seperate PR and this will get merged upstream eventually

@wilsonge
Copy link
Contributor

wilsonge commented Aug 6, 2019

Can you add back weblinks please :P

@brianteeman
Copy link
Contributor Author

Done ;)

@Quy
Copy link
Contributor

Quy commented Aug 6, 2019

I have tested this item ✅ successfully on e7b3b8b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25792.

1 similar comment
@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on e7b3b8b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25792.

@ghost
Copy link

ghost commented Aug 7, 2019

Status "Ready To Commit".

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Aug 7, 2019
@HLeithner HLeithner merged commit 3c678ec into joomla:staging Aug 8, 2019
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Aug 8, 2019
@brianteeman
Copy link
Contributor Author

Thanks - this has been bugging me for ages

@brianteeman brianteeman deleted the sort branch August 8, 2019 07:13
@HLeithner
Copy link
Member

Thank you for the time you invest in Joomla!

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.

6 participants