Implement comparable (or comparator, I forget which one Collections.sort uses), then simply call the comparable portion of the string class:


class Item implements Comparable<Item>
{
//...