News for hackers. Stuff that matters.
Re:Why does sorting in computer science mean ordering rather... by jfoutz on Wednesday September 05, 2018 @03:46PM (#17921278)
lego is funny, if you have a pile of red 'stuff' it's hard to pick out the 2x8. however, if you have a pile of 2x8s, it's really easy to pick out the red one.

size/shape is far more useful.

Re:Why does sorting in computer science mean ordering rather... by tomgp on Thursday September 06, 2018 @04:54AM (#17924817)
This is a well known idea in data visualisation -- first articulated by Jaques Bertin back in the 60s (I think). Colour is known as a selective visual variable; selective variables are better used to represent categorical data as they "enable us to immediately isolate all correspondences belonging to the same category". i.e. sort your lego by bricks type rather than colour, though sorting by colour will lead to more instagram likes :)
Re:Why does sorting in computer science mean ordering rather... by jayd16 on Wednesday September 05, 2018 @06:40PM (#17922468)
Hmm, when playing with lego, I usually don't know what shapes I need but I often know what color I want.
Re:Why does sorting in computer science mean ordering rather... by gowld on Wednesday September 05, 2018 @09:05PM (#17923190)
Yes, but you don't need to sort them by color, because you can easily see which pieces are the color you want.
Re:Why does sorting in computer science mean ordering rather... by bena on Wednesday September 05, 2018 @05:04PM (#17921913)
Yes, color looks nicer, but shape is more useful.