Sort digits by their first occurrence in pi Given a non-negative number n, sort the digits of n by their first occurrence in pi. 

Input can be taken via function cli argument, or STDIN and as a string, char[] or integer. You may output via return value, exit status or STDOUT.
Python 3, 40 39 bytes

1 byte thanks to Jonathan Allan.



lambda s:sorted(s,key="145926870".find)


Try it online!