1 the Database Class, with static method.It is just a arraylist of IndexerBag
2 the IndexerBag contains a indexer and the Field.
3 myComparator implements the comparater for the sort method in database.