removed bug
switched to Collections.sort