A Java based database sorting program