Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 17th, 2018
78
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
function compareBy(a, b) {
return (a || b) ? (!a ? -1 : !b ? 1 : a.localeCompare(b)) : 0;
}
array.sort((a, b) => compareBy(a.prop1, b.prop1) || compareBy(a.prop2, b.prop2) || etc...);
Add Comment
Please,
Sign In
to add comment
Public Pastes
SnapSanix HUB
Lua | 5 min ago | 39.36 KB
Untitled
Python | 19 min ago | 1.13 KB
Untitled
Python | 27 min ago | 7.73 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 33 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 43 min ago | 0.38 KB
Untitled
C | 1 hour ago | 4.54 KB
Untitled
Java | 1 hour ago | 0.52 KB
haircut.py
Python | 1 hour ago | 0.69 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!