In 6.1 there is no proper way to order asset entries by title, as the titles are stored in XML format.
1.) Go to Admin --> Site Administration --> Content, and create two web contents (use English as default language):
4.) Create one more web content (use German as default language):
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.
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.