Details

      Description

      In 6.1 there is no proper way to order asset entries by title, as the titles are stored in XML format.

      Reproduction steps:
      1.) Go to Admin --> Site Administration --> Content, and create two web contents (use English as default language):

      Title Content
      aaaaaa aaaaaa
      gggggg gggggg

      4.) Create one more web content (use German as default language):
      Title Content
      kinder kinder

      5.) Go back to the Liferay homepage, select Configuration form the Asset Publisher, change the Display Style to "Table" and set the Order-by to "Title" and "Ascending", save the configurations.

      Expected result: The created web contents should be in an alphabetical order.

      Actual result: We can see that the alphabetical order is not respected.

      From 6.2 this problem is solved by the indexing search.

      This ticket's goal is to create an alternative way for ordering the entries by title.

      Solution:
      Fetch all of the assets to memory and order them in Java code and prepare the pagination.

      As this logic could be performance killer, a new property will be introduced, which limits the sortable asset entries size.
      If there are more asset entries than this limit, the ordering logic is skipped.

      The Asset Publisher configuration (and the asset framework) offers two ordering parameters. However, for better performance, the entries are ordered by title only if the first parameter is set to "title", and the second parameter is ignored.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jose.dominguez Jose Ignacio Dominguez (Inactive)
              Reporter:
              tamas.molnar Tamas Molnar
              Recent user:
              Marta Elicegui
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  6.1.X EE