Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
bobo_bobkata
Oct 8th, 2019
65
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.25 KB
| None
|
0
0
raw
download
clone
embed
print
report
function sort(array, typeOfSort) {
if (typeOfSort === 'asc') {
return array.sort((e, e1) => {
return e - e1;
});
} else {
return array.sort((e, e1) => {
return e1 - e;
});
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 21 min ago | 0.39 KB
data917
JSON | 32 min ago | 0.64 KB
wf-info
INI file | 41 min ago | 1.76 KB
step motor_V4
C++ | 41 min ago | 25.14 KB
silly
Lua | 1 hour ago | 4.05 KB
Untitled
C# | 3 hours ago | 2.78 KB
K_C_Shuffle
C# | 3 hours ago | 1.13 KB
pagination-fixed
JavaScript | 3 hours ago | 4.75 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!