<?php
class Projects extends CI_Controller {

    public function __construct() {
        parent::__construct ();
        $this->load->helper ( 'file' );
    }

	public function index() {
        $filepath = APPPATH . 'logs/repocache.json';
        $cachefile = read_file($filepath);
        $decoded = json_decode($cachefile);

        $data = array();
        $data['githubFeed'] = $decoded;

		$this->load->view ( "projects" , $data );
	}
}
<?php
class Projects extends CI_Controller {

    public function __construct() {
        parent::__construct ();
        $this->load->helper ( 'file' );
    }

	public function index() {
        $filepath = APPPATH . 'logs/repocache.json';
        $cachefile = read_file($filepath);
        $decoded = json_decode($cachefile);

        usort($decoded, function($a, $b)
        {
            return ($a->pushed_at < $b->pushed_at);
        });

        $data = array();
        $data['githubFeed'] = $decoded;

		$this->load->view ( "projects" , $data );
	}
}
Order the github feed so that the most recently worked on project appears at the top
Order the github feed so that the most recently worked on project appears at the top
