I am trying to create an alias which will list all process sorted by process name. 
So if I write myps processname, it should return all the process names sorted by process names, excluding the grep command result itself. 
Both of these are working fine
alias myps='ps aux|grep $1'
or just
alias myps='ps aux|grep '
But I am not able to use it like below
alias myps='ps aux|grep $1|grep -v grep|sort -k12'
I understand that while creating alias, passed variable is added at the last of the command.
Limitation is that I cannot change .env or .profile file and I cannot create new shell scripts on my unix box.
Can someone suggest any way to achieve it by alias or something?
 
     
    