Skip to content

[6.1] Changed the ordering of the Sorting and added missed filter options in frontend#45206

Open
Dileepadari wants to merge 6 commits intojoomla:6.1-devfrom
Dileepadari:I_37841_v2
Open

[6.1] Changed the ordering of the Sorting and added missed filter options in frontend#45206
Dileepadari wants to merge 6 commits intojoomla:6.1-devfrom
Dileepadari:I_37841_v2

Conversation

@Dileepadari
Copy link
Contributor

@Dileepadari Dileepadari commented Mar 24, 2025

Pull Request for Issue #37841 .

Summary of Changes

  • Aligned filter options in the article modal for both frontend and backend.
  • Aligned the sorting filter by arranging options in same order for both frontend and backend.

Testing Instructions

  1. Navigate to: your.domain/index.php?option=com_content&view=form&layout=edit
  2. Select Article as the Menu Item Type (default is CMS content).
  3. A modal window with articles will open.
  4. New filters Featured and Stage (visible only when workflows are enabled for articles) are now available.
  5. Apply different filters and verify that the content updates accordingly.

Actual result BEFORE applying this Pull Request

  • Filter options were inconsistent between the backend and frontend.
    before_1

  • Sorting options in frontend were ordered differently from backend.
    before_2

Expected result AFTER applying this Pull Request

  • Filter options are now consistent between the backend and frontend.
    after_1

  • Sorting options are consistent over both frontend and backend.
    after_2

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-5.2-dev labels Mar 24, 2025
@Dileepadari
Copy link
Contributor Author

Dileepadari commented Mar 24, 2025

This is continuous pr for 45106 to solve the issue #37841 .

@Dileepadari Dileepadari changed the title [5.2] Changed the ordering of the filters and added missed filter options in frontend [5.2] Changed the ordering of the Sorting and added missed filter options in frontend Mar 24, 2025
@ghost
Copy link

ghost commented Mar 24, 2025

I have tested this item ✅ successfully on 2177a03

Without PR

Backend Frontend
backend-article-modal frontend-article-modal

With PR

Backend Frontend
backend-article-modal-2 frontend-article-modal-2

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

@brianteeman
Copy link
Contributor

Sorting in alphabetical order is completely pointless as it only works if the language is english. As soon as you switch to use another language the order is completely meaningless. That is why the order currently matches the column order. It wasnt just a random act.

@brianteeman
Copy link
Contributor

I have tested this item 🔴 unsuccessfully on 2177a03


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

@Rohit-rk07
Copy link

@fgsw @brianteeman Could anyone please clarify the stage filter issue .why it isnt visible in backend

@brianteeman
Copy link
Contributor

it is only visible when you have enabled workflows

@Dileepadari
Copy link
Contributor Author

Dileepadari commented Mar 24, 2025

@brianteeman Thanks for providing info about the sorting order, I have reverted back to previous order but changed some order to align frontend with backend. Could you please let me know if there is a reason to not having sort by rating and published in frontend whereas it is present in backend. Thank you

@brianteeman
Copy link
Contributor

If the item you are sorting by is not displayed is there any point in that sort order as you can't see the results

@Dileepadari
Copy link
Contributor Author

But the item like Date modified will be useful when they want to access recently modified items. I added it in the frontend, Should I remove that too?

@HLeithner HLeithner changed the base branch from 5.2-dev to 6.0-dev April 15, 2025 16:44
@HLeithner
Copy link
Member

This pull request has been automatically rebased to 6.0-dev.

@richard67 richard67 changed the title [5.2] Changed the ordering of the Sorting and added missed filter options in frontend [6.0] Changed the ordering of the Sorting and added missed filter options in frontend Apr 20, 2025
@HLeithner HLeithner changed the base branch from 6.0-dev to 6.1-dev August 31, 2025 11:57
@HLeithner
Copy link
Member

This pull request has been automatically rebased to 6.1-dev.

@HLeithner HLeithner changed the title [6.0] Changed the ordering of the Sorting and added missed filter options in frontend [6.1] Changed the ordering of the Sorting and added missed filter options in frontend Aug 31, 2025
@tecpromotion tecpromotion added the PBF Pizza, Bugs and Fun label Jan 29, 2026
@drankwiler
Copy link

Filter options are consistent, alphabetical order is reversed.


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

@Dileepadari
Copy link
Contributor Author

Filter options are consistent, alphabetical order is reversed.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45206.

Hi @drankwiler , Thanks for testing the pr, could you please let me know which alphabetical order you are talking about, is it for Filter or Sorting? Thank you

@idefax
Copy link

idefax commented Jan 31, 2026

I have tested this item 🔴 unsuccessfully on 9f0ef57

Filter options are now consistent, but sorting order is reversed (Z to A).


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

@Dileepadari
Copy link
Contributor Author

I have tested this item 🔴 unsuccessfully on 9f0ef57Filter options are now consistent, but sorting order is reversed (Z to A).
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45206.

Hi @idefax , Thanks for testing the pull request, could you please let me know which alphabetical order you are talking about, is it for Filter or Sorting? Thank you

@idefax
Copy link

idefax commented Jan 31, 2026

Hi @Dileepadari

I'm talking about the content of the drop down menus. I understood the case the way, that there entries are supposed to be sorted A to Z. Or did I missunderstand this?

sorting-in-dropdown

@drankwiler
Copy link

Hi @Dileepadari, I'm talking about the order inside the filters. For example, in the "Select featured" dropdown, "Unfeatured" comes before "Featured".
image

@Dileepadari
Copy link
Contributor Author

Hi @Dileepadari, I'm talking about the order inside the filters. For example, in the "Select featured" dropdown, "Unfeatured" comes before "Featured".
image

But it was same in the backend too. Should I change in both places. What would you suggest?

@drankwiler
Copy link

@Dileepadari Hm… i would say, it would be more intuitive to have the order A-Z instead of Z–A. What do you and @idefax think?

@Dileepadari
Copy link
Contributor Author

@Dileepadari Hm… i would say, it would be more intuitive to have the order A-Z instead of Z–A. What do you and @idefax think?

Yeah I thought that first, but brianteeman raised a valid point that the whole point of sorting makes no sense when the language got changed. So we can leave it as it is.

@idefax
Copy link

idefax commented Jan 31, 2026

@drankwiler @Dileepadari yeah, I prefer A to Z as well. But I don't quite understand the point of sorting regarding other languages. A to Z works in all latin languages. Or am I missing something here?

@drankwiler
Copy link

Yeah I thought that first, but brianteeman raised a valid point that the whole point of sorting makes no sense when the language got changed. So we can leave it as it is.

Okay, then should we mark this patch as tested successfully?

@Dileepadari
Copy link
Contributor Author

Yeah I thought that first, but brianteeman raised a valid point that the whole point of sorting makes no sense when the language got changed. So we can leave it as it is.

Okay, then should we mark this patch as tested successfully?

Sorry, Previously it was mentioned for the sort by as they are aligning to the columns in the table. Now In this case, as they are not in any type of order, we can go with alphabetical, I'll make them alphabetical in both frontend and backend. Would that be fine? @drankwiler @idefax

@brianteeman
Copy link
Contributor

Please do not change this. There is a logic to the ordering PLUS changing it to alphabetical will only change it in English and not any of the 60+ languages that joomla is available in.

@drankwiler
Copy link

@brianteeman @Dileepadari So we mark this patch as tested sucessfully, right?

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

Labels

Feature Language Change This is for Translators PBF Pizza, Bugs and Fun PR-6.1-dev

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants

Comments