Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
7bbc2770
Commit
7bbc2770
authored
Nov 26, 2014
by
Joas Schilling
Browse files
Move NaturalSort_DefaultCollator to its own file
parent
7b8824a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/private/naturalsort.php
View file @
7bbc2770
...
@@ -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
;
}
}
}
}
lib/private/naturalsort_defaultcollator.php
0 → 100644
View file @
7bbc2770
<?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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment