Add sort by to your search query

One column may be set on which to sort the assets returned during a fetch. To do this use the RAMQueryBuilder.setSortByField(String) method. There are constants for Community Name, Last Modified Date, Asset Name, Rating, Relevance, State and Version

                //Add sorting to your Query
                queryBuilder.setSortByField(queryBuilder.SORT_BY_FIELD_VERSION);
                queryBuilder.setSortAscending(true);
                
                AssetSearchResult[] sortedAssets = pagedResult.getAssetSearchResults();

Feedback