mercredi 12 octobre 2016

Laravel sort table alphabetically

I have a HTML table and there is some data from the database (MongoDB) of my website (Laravel 5.1). There are different dog names which comes from my site

Now it looks like this:

row1: Bello
row2: Rex
row3: Ace
row4: Elvis
row6: Benny
row7: Sam
row8: Rusty

The number of dogs and the names could be different. But they should all the time sorted alphabetically. How can I do this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire