> > An exaple will help
>
> So will some effort.
Now, before you fly off the handle about "newbie persecution" or some other ridiculous tangent about how you're not getting help around here, consider the following:
You obviously have internet access. Google for "java array sort" and "java array tutorial". You'll find more examples than you can shake a stick at. Don't expect to be spoon-fed answers. I trust your abilities to work toward a solution. If/when you run into a snag, post a [url=http://www.physci.org/codes/sscce.jsp]short, concise, executable example[/url] of what you're trying to do. Post your code between [code] and [/code] tags. Cut and paste the code, rather than re-typing it (re-typing often introduces subtle errors that make your problem difficult to troubleshoot). Please preview your post when posting code.
We'll be happy to help, but there's no sense repeating tutorial information when it's so readily available.
Good luck!