Start at the beginning of the list. Compare the first value in the list with the next one up. If the first value is bigger, swap the positions of the two values. Move to the second value in the list.
After the package is installed, make sure to add laravel-blade-sortable::scripts components next to your other scripts. NOTE: Any other attribute you pass along (class, id, alt, etc) will be added to ...