Account name:
Password
(OpenID?)
(Forgot it?)
Remember Me
You're viewing
gnomi
's journal
Create a Dreamwidth Account
Learn More
Interest
Region
Site and Account
FAQ
Email
Reload page in style:
site
light
My mind, and the places it goes
Singing Showtunes with the Rabbi's Girlfriend
Out of Sorts
Out of Sorts
May
.
14th
,
2008
11:36 am
gnomi
Send more sorts. Bubble, selection, insertion, shell... I'm not picky. I'll even take gnome or pigeonhole (though not bucket, as the lolrus took it).
Current Mood:
out of sorts
Flat
|
Top-Level Comments Only
no subject
Date:
2008-05-14 03:44 pm (UTC)
From:
rikchik.livejournal.com
Have a radix sort - you can use it to sort your radishes.
no subject
Date:
2008-05-14 03:46 pm (UTC)
From:
tsuki-no-bara.livejournal.com
maybe some allsorts? :D how about some penguins?
no subject
Date:
2008-05-14 03:50 pm (UTC)
From:
glishara.livejournal.com
Monkey sort, just for you!
no subject
Date:
2008-05-14 03:51 pm (UTC)
From:
saxikath
liquorice allsorts?
Oh, drat, someone beat me to it. :)
no subject
Date:
2008-05-14 03:55 pm (UTC)
From:
norda.livejournal.com
I can spare you a sortie or two. If I only engage on three sorties with vendors at once, I still meet my sortie quota.
no subject
Date:
2008-05-14 04:04 pm (UTC)
From:
cbpotts.livejournal.com
I posted a wee link for you on my reply to your comment that should fix your sorts. Go thou, and gaze at pretty, pretty hands. It's sfw.
no subject
Date:
2008-05-14 04:24 pm (UTC)
From:
530nm330hz.livejournal.com
If I had a letterpress, I'd be happy to give you a
sort
.
Here is a Schwartzian transform sort
Date:
2008-05-14 04:30 pm (UTC)
From:
(Anonymous)
@sorted = map { $_->[0] } sort { $a->[1] cmp $b->[1] } map { [$_, foo($_)] } @unsorted;
--Uri
no subject
Date:
2008-05-14 06:59 pm (UTC)
From:
ckd
Pessimal sort: randomize the order of the list. Check to see if it's sorted. If not, randomize again and check. Repeat until sorted.
(Note that we randomize before checking for sorted input, to ensure maximum pessimalization.)
9 comments
Reply
Flat
|
Top-Level Comments Only
Profile
gnomi
My Website
Recent Entries
Archive
Reading
Tags
Memories
Profile
August
2015
S
M
T
W
T
F
S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Most Popular Tags
announcement
-
76 uses
birthday
-
530 uses
books
-
42 uses
boston
-
89 uses
brookline
-
136 uses
cambridge
-
18 uses
conventions
-
40 uses
crimes_against_vocabulary
-
31 uses
current_events
-
67 uses
editing
-
51 uses
esjb
-
27 uses
family
-
65 uses
food
-
141 uses
friends
-
76 uses
geek
-
31 uses
get-togethers
-
30 uses
how_we_talk
-
71 uses
jewish
-
280 uses
knitting
-
81 uses
language
-
233 uses
links
-
59 uses
mabfan
-
132 uses
meme
-
38 uses
menus
-
30 uses
movies
-
36 uses
muffin
-
138 uses
music
-
78 uses
my_brain
-
104 uses
observances
-
76 uses
open_letter
-
34 uses
pictures
-
47 uses
plotting_and_planning
-
19 uses
poll
-
130 uses
psa
-
19 uses
rambly_bits
-
71 uses
random
-
63 uses
science
-
31 uses
silly
-
228 uses
space
-
18 uses
squeaker
-
141 uses
technology
-
17 uses
tell_me_stuff
-
65 uses
transportation
-
37 uses
travel
-
50 uses
tv
-
113 uses
weather
-
52 uses
work
-
43 uses
writing
-
111 uses
yalp
-
29 uses
yo_someone
-
18 uses
Page Summary
rikchik.livejournal.com
-
(no subject)
tsuki-no-bara.livejournal.com
-
(no subject)
glishara.livejournal.com
-
(no subject)
saxikath
-
(no subject)
norda.livejournal.com
-
(no subject)
cbpotts.livejournal.com
-
(no subject)
530nm330hz.livejournal.com
-
(no subject)
(Anonymous)
-
Here is a Schwartzian transform sort
ckd
-
(no subject)
Style Credit
Style:
by
timeasmymeasure
Expand Cut Tags
No cut tags
Page generated Jan. 2nd, 2026 11:41 pm
Powered by
Dreamwidth Studios
no subject
Date: 2008-05-14 03:44 pm (UTC)no subject
Date: 2008-05-14 03:46 pm (UTC)no subject
Date: 2008-05-14 03:50 pm (UTC)no subject
Date: 2008-05-14 03:51 pm (UTC)Oh, drat, someone beat me to it. :)
no subject
Date: 2008-05-14 03:55 pm (UTC)no subject
Date: 2008-05-14 04:04 pm (UTC)no subject
Date: 2008-05-14 04:24 pm (UTC)Here is a Schwartzian transform sort
Date: 2008-05-14 04:30 pm (UTC)@sorted = map { $_->[0] } sort { $a->[1] cmp $b->[1] } map { [$_, foo($_)] } @unsorted;no subject
Date: 2008-05-14 06:59 pm (UTC)(Note that we randomize before checking for sorted input, to ensure maximum pessimalization.)