Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
bobo_bobkata
Oct 8th, 2019
84
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
obj.js
JavaScript | 15 sec ago | 35.01 KB
Untitled
HTML | 38 min ago | 6.88 KB
Signal Monitor rev_02
Arduino | 46 min ago | 2.74 KB
Two Words rev_01
Arduino | 49 min ago | 2.74 KB
Synthetic Humans
JSON | 57 min ago | 45.67 KB
Periodic Ethernet Initialization and ADC Read...
Arduino | 1 hour ago | 4.51 KB
Network Operations rev_05
Arduino | 1 hour ago | 4.29 KB
Network Communication rev_04
Arduino | 1 hour ago | 3.98 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!