Refactor Table class so it will compile against Java 8 #84

Made the existing Table::sort method static so that it will not
clash with the virtual extension method on ArrayList in Java8.