When I saw the example I thought this was using R, the statistical computing tool. But it's this tool itself that has an executable called R. I'd suggest renaming it.
I think the reason is that this is close to home to Ramda users - the typical name for the Ramda object in Javascript is R.
(for the unaware, Ramda is basically Underscore but more powerful and with a saner, more consistent API)
var my_sort = R.compose(R.first, R.sort, R.prop('id'))