Intersezione Dev Blog

Tips & Tricks di sviluppo interno

Silverstripe 3 – Ordinare per chiave multipla

On 19 dicembre 2016, in Sviluppo, by admin

Ecco un esempio di come si puo’ impostare la ->sort analogamente alla ->filter per gestire chiavi di ordinamento multiple gestite a cascata.

->sort(Array('ParentID' => 'DESC', 'Sort' => 'ASC'))

Tagged with: datalist • silverstripe • silverstripe3 • sort
 
0 Comments
Leave A Response

Articoli recenti 

  • Silverstripe – stampare html in summary_fields
  • .htaccess – Silverstripe splash
  • .htaccess – Creazione record per redirect 301 di un alias del dominio
  • Attivazione WS Carta docente
  • Silverstripe 3 – Ordinare per chiave multipla

Archivi 

  • agosto 2019
  • novembre 2018
  • febbraio 2017
  • gennaio 2017
  • dicembre 2016
  • novembre 2016
  • agosto 2014
  • febbraio 2013
  • settembre 2012
  • luglio 2012
  • giugno 2012
  • marzo 2012
  • febbraio 2012

Categorie 

  • Grafica
  • Senza categoria
  • Sviluppo
  • WebServer

Meta 

  • Collegati
  • Voce RSS
  • RSS dei commenti
  • WordPress.org
Go To Top »

Intersezione Dev Blog

Pages

Stay In Touch

More

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed.
© 2012 Intersezione Dev Blog
Station by PageLines