I tried with both sort and asort. It's not working.



2014-03-16 12:12 GMT+02:00 Dionysis Zindros <notifications@github.com>:

> In models/migration/base.php:
>
> > +            include 'database/migration/' . $env . '.txt';
> > +            $log = ob_get_clean();
> > +            if ( empty( $log ) ) {
> > +                throw new ModelNotFoundException();
> > +            }
> > +        }
> > +
> > +        public static function findAll() {
> > +            $array = [];
> > +            $handle = opendir( 'database/migration/' );
> > +            while ( false !== ( $entry = readdir( $handle ) ) ) {
> > +                if ( $entry != "." && $entry != ".." && $entry != "development.txt" && $entry != "test.txt" ) {
> > +                    $array[] = $entry;
> > +                }
> > +            }
> > +            array_multisort( $array, SORT_ASC, $array );
>
> sort?`
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dionyziz/endofcodes/pull/147/files#r10638827>
> .
>