Skip to content
Snippets Groups Projects
Commit 7bbc2770 authored by Joas Schilling's avatar Joas Schilling
Browse files

Move NaturalSort_DefaultCollator to its own file

parent 7b8824a4
No related branches found
No related tags found
No related merge requests found
......@@ -9,16 +9,6 @@
namespace OC;
class NaturalSort_DefaultCollator {
public function compare($a, $b) {
if ($a === $b) {
return 0;
}
return ($a < $b) ? -1 : 1;
}
}
class NaturalSort {
private static $instance;
private $collator;
......@@ -114,4 +104,3 @@ class NaturalSort {
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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment