Here is a code that sorts a determined number of items from an array.
Check this code on GitHub or go to JSfiddle
Here you can see an institutional website. It was built for a company that rent containers.
Check the code on GitHub or go to The Live website