Create lego-sorting.js