Skip to content

Instantly share code, notes, and snippets.

View jtarleton's full-sized avatar

James Tarleton jtarleton

View GitHub Profile
@jtarleton
jtarleton / Helpers.class.php
Last active August 29, 2015 14:15 — forked from anonymous/Helpers.class.php
Sort an associative array of objects by any number of properties in any order, maintaining key association.
<?php
class HelperLibrary
{
/**
* Sort an associative array of objects by any number of properties in any order, maintaining key association.
*
* Example usage, for an array of users:
*
* $users = array();
*