correct usort context collection (closes #4099)