pantheon-systems/terminus — pull request #78 by pirog (2013-10-23 18:39:01+00:00)
Title: Need to sort array values, not keys, to find latest bucket

Noticed that after creating a site on Pantheon and then making a backup the "import" bucket was still coming through as the "latest" bucket. This happens because sorting by the buckets keys is just sorting by what seems to be filename vs the TIMESTAMP_BUCKETTYPE array value which seems to be what we want to be sorting by.

Anyway...