Fixed bug with sorting variable names with minus sign in front