```coffeescript
Model = require './model'

class RequestHistory extends Model

    url: -> "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/history/request/#{ @requestId }/requests"

    initialize: (models, { @requestId }) =>

    parse: (requestHistoryObjects) ->
        requestHistory = {}
        requestHistory.requestId = @requestId
        requestHistory.requestUpdates = requestHistoryObjects

        _.each requestHistory.requestUpdates, (requestUpdate, i) =>
            requestUpdate.userHuman = requestUpdate.user?.split('@')[0] ? '—'
            requestUpdate.createdAtHuman = utils.humanTimeAgo requestUpdate.createdAt
            requestUpdate.stateHuman = constants.requestStates[requestUpdate.state]

        requestHistory

module.exports = RequestHistory```

Sort requestHistory requestUpdates by createdAt (so new items are at the top)
user
```coffeescript
Model = require './model'

class RequestHistory extends Model

    url: -> "#{ env.SINGULARITY_BASE }/#{ constants.apiBase }/history/request/#{ @requestId }/requests"

    initialize: (models, { @requestId }) =>

    parse: (requestHistoryObjects) ->
        requestHistory = {}
        requestHistory.requestId = @requestId
        requestHistory.requestUpdates = requestHistoryObjects

        _.each requestHistory.requestUpdates, (requestUpdate, i) =>
            requestUpdate.userHuman = requestUpdate.user?.split('@')[0] ? '—'
            requestUpdate.createdAtHuman = utils.humanTimeAgo requestUpdate.createdAt
            requestUpdate.stateHuman = constants.requestStates[requestUpdate.state]

        _.sortBy requestHistory.requestUpdates, (r) -> r.createdAt
        requestHistory.requestUpdates.reverse()

        requestHistory

module.exports = RequestHistory```
assistant