0

I want to sort a 2-dimensional String array like this

"xx", "text 1"
"aa", "text 2"
"mm", "text 3"

to look like this

"aa", "text 2"
"mm", "text 3"
"xx", "text 1"

I have already found a method to do this in Java, but this won't work on Android (at least not with 1.6, which is necessary for me), because columnComparator is not available.

Does anyone know how to do this?

1
  • coloumComparator is a class that was within the code. Its not within the java library. Just use the class that is there in that code and it should work. Commented Jan 12, 2011 at 17:26

1 Answer 1

1

ColumnComparator is that guy's own class that he's created by extending Comparator. Do the same and it will work for you !

Sign up to request clarification or add additional context in comments.

1 Comment

Arrrgghh, I really should have read read the whole code. Thanks and sorry for bothering.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.