flip start and endkey for model.last method