Socks of Justification: Algorithmic Edition

Because sometimes you just need a little help with your socks.

What are Socks of Justification?

Socks of Justification is a collection of algorithms and techniques for making your socks more justifiable.

Whether you're a seasoned sock expert or just starting out, our algorithmic socks will help you optimize your sock drawer, justify your sock choices, and traverse the vast landscape of sock possibilities.

					function justifySocks( socks ) {
						var sortedSocks = socks.sort();
						for( var i = 0; i < sortedSocks.length; i++ ) {
							if( i % 2 === 0 ) {
								sortedSocks[ i ] += 5;
							}
						}
						return sortedSocks;
					}