Skip to content

Instantly share code, notes, and snippets.

View onecoders's full-sized avatar
🏠
Working from home

Roy onecoders

🏠
Working from home
View GitHub Profile
@onecoders
onecoders / gist:6228854
Created August 14, 2013 07:56
file sort
private class SortFileName implements Comparator<File> {
@Override
public int compare(File f1, File f2) {
return f1.getName().compareToIgnoreCase(f2.getName());
}
}
private class SortFolder implements Comparator<File> {