diff --git a/core/js/js.js b/core/js/js.js
index e306e2a73697b6045df43302f35e56e0e77de409..fd6dcfcff6a0283ef07941dbcaa14cb4b5fcf11f 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -2082,12 +2082,9 @@ OC.Util = {
 				if (aNum == aa[x] && bNum == bb[x]) {
 					return aNum - bNum;
 				} else {
-					// Forcing 'en' locale to match the server-side locale which is
-					// always 'en'.
-					//
-					// Note: This setting isn't supported by all browsers but for the ones
+					// Note: This locale setting isn't supported by all browsers but for the ones
 					// that do there will be more consistency between client-server sorting
-					return aa[x].localeCompare(bb[x], 'en');
+					return aa[x].localeCompare(bb[x], OC.getLanguage());
 				}
 			}
 		}