support limit number and sorting