The year 2013 had an interesting property: the digits are consecutive when sorted (0123). Let's call this type of number a sortable number: a non-negative integer whose base-10 digits are consecutive after sorting. Unfortunately, this won't happen again until 2031, and after that, not until 2103. Your challenge is to write a program or function that, when given a non-negative integer through any standard method, outputs or returns the next sortable number.
Rules
- Input and output must be in base 10.
- Output may be in any reasonable format (number literal, string literal, single-item array, ...).
- Your code must produce the proper output within 1 minute for all inputs up to 98764.
Test cases
0 -> 1
1 -> 2
9 -> 10
10 -> 12
11 -> 12
99 -> 102
233 -> 234
234 -> 243
243 -> 312
2016 -> 2031
2031 -> 2103
2103 -> 2130
2130 -> 2134
2134 -> 2143
9876 -> 10234
98764 -> 98765
The sortable numbers form A215014. A list of all entries up to 98765 can be found here.
Scoring
This is code-golf, so the shortest code in bytes wins.