Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 20th, 2018
68
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
PHP
0.34 KB
| None
|
0
0
raw
download
clone
embed
print
report
public
function
sortList
(
$by
)
{
function
cmp
(
$a
,
$b
)
use
(
$by
)
{
if
(
$a
[
$by
]
==
$b
[
$by
]
)
{
return
0
;
}
return
(
$a
[
$by
]
<
$b
[
$by
]
)
?
-
1
:
1
;
}
usort
(
$this
->
list
,
"cmp"
)
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
snowybot python
JavaScript | 5 min ago | 2.97 KB
python
JavaScript | 6 min ago | 0.08 KB
Untitled
HTML | 1 hour ago | 0.43 KB
Untitled
Bash | 1 hour ago | 1.61 KB
Select2 Ajax Value Preselected/Selected Value...
JavaScript | 1 hour ago | 0.31 KB
Stargate Coords
Lua | 3 hours ago | 1.13 KB
[tmpfixcorners].config/gtk3/gtk.css
CSS | 5 hours ago | 0.12 KB
Roblox random IP address generator and geoloc...
Lua | 5 hours ago | 6.72 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!