add mongoose, get sorted results in JSON format