Hello!
I have the following problem:
I have created SuggestBox element and filled it`s
MultiWordSuggestOracle. But when I use showSuggestionList(), my
suggestions are displaying in alphabetic order instead of original
order. I want to show suggestions depends on their rating, not in
alphabetic order.
So, maybe someone could help me? I suppose, it must be some mechanism
to set displaying order, but I havent found it in docs yet.

My code is quite simple:
AsyncCallback<ArrayList> callback = new AsyncCallback<ArrayList>() {
          public void onSuccess(ArrayList result){
            ArrayList suggests = result;
            Iterator suggestsIt = suggests.iterator();
            MultiWordSuggestOracle ora = getOracleByElementId
(innerSuggesterId);
            ora.addAll(suggests);
...

I`m sure that element of my ArrayList suggests are sorted in order I
want. But oracle changes it.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to