diff --git a/src/files.c b/src/files.c
index fee60c4bea3a5199f3c8ad7adf5f0db920ec4358..2723fc0a91695aac6df198f45b55fd5f02623b32 100644
--- a/src/files.c
+++ b/src/files.c
@@ -1965,9 +1965,8 @@ char *real_dir_from_tilde(const char *buf)
 }
 
 #if !defined(DISABLE_TABCOMP) || !defined(DISABLE_BROWSER)
-/* Our sort routine for file listings.  Sort directories before
- * filenames, alphabetically and ignoring case differences.  Sort
- * filenames the same way, except for ignoring an initial dot. */
+/* Our sort routine for file listings.  Sort alphabetically and
+ * case-insensitively, and sort directories before filenames. */
 int diralphasort(const void *va, const void *vb)
 {
     struct stat fileinfo;
@@ -1981,11 +1980,6 @@ int diralphasort(const void *va, const void *vb)
     if (!aisdir && bisdir)
 	return 1;
 
-    if (*a == '.')
-	a++;
-    if (*b == '.')
-	b++;
-
     return strcasecmp(a, b);
 }
 #endif