Commit 7bbc2770 authored by Joas Schilling's avatar Joas Schilling
Browse files

Move NaturalSort_DefaultCollator to its own file

parent 7b8824a4
...@@ -9,16 +9,6 @@ ...@@ -9,16 +9,6 @@
namespace OC; namespace OC;
class NaturalSort_DefaultCollator {
public function compare($a, $b) {
if ($a === $b) {
return 0;
}
return ($a < $b) ? -1 : 1;
}
}
class NaturalSort { class NaturalSort {
private static $instance; private static $instance;
private $collator; private $collator;
...@@ -114,4 +104,3 @@ class NaturalSort { ...@@ -114,4 +104,3 @@ class NaturalSort {
return self::$instance; return self::$instance;
} }
} }
<?php
/**
* Copyright (c) 2014 Vincent Petry <PVince81@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*
*/
namespace OC;
class NaturalSort_DefaultCollator {
public function compare($a, $b) {
if ($a === $b) {
return 0;
}
return ($a < $b) ? -1 : 1;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment