PHP Classes

File: examples/store_sort.php

Recommend this page to a friend!
  Classes of Everton da Rosa   XtPHP   examples/store_sort.php   Download  
File: examples/store_sort.php
Role: Example script
Content type: text/plain
Description: Example script
Class: XtPHP
General purpose library of utility classes
Author: By
Last change:
Date: 9 years ago
Size: 321 bytes
 

Contents

Class file image Download
<?php

//Exemplo de ordenação de um STORE
require '../store.php';
require
'../utils.php';
require
'store.php';//O STORE

//store sem ordenar
XtUtils::printr($store);

//A ordem
$order = array(
   
'cod' => 'desc'
   
,'campo1' => 'asc'
);

$store = XtStore::sort($store, $order);//Ordenação


XtUtils::printr($store);


?>