Ordering Support via options.beforeId

@sbrunot, fixed. thanks