You will need to maintain a reference to the previous element also in the above code. Because as per your requirement you want to insert the new element before the element "temp" is holding a reference of when you are traversing the queue.
Now let us take analyse your code one line at a time :-
This is fine, you are declaring the temporary reference to your start of Queue.
while(temp != null){
if (temp.info > x)
Now your while condition states that you will should go through to the end of the queue. However there is a problem if your "if" condition, Consider you list contains the following elements :-
2 3 4 9 10
And you wish to insert the value "7",
Because of your "if" condition temp will enter the "if" block only when it is pointing to "9". And since this is a singly linked list you cannot traverse backwards. So you cannot insert "7" in the correct position in the list. For that you will need to also maintain a reference to node in your queue preceding the node to which "temp" is currently referring to.
temp.info = new queueNode(x);
Now over here this statement at least appears to be incorrect. Although I do not know your structure for class "queueNode", I am guessing "info" should be of type "int". Also you are overwriting directly the value present at the current location, You should instead create a new node, and assign it to another temporary variable say "temp2", and then in order to maintain the "link" in your linked list, the "link" field of this new node should be assigned to current value in "temp". And the "link" field of the node preceding "temp" should be made to point to the new node. So your new element would be linked into your queue before "temp" which contains an element larger than it.
Also you will need to put a "break" in your "if" block else the new value will be inserted after every element greater than it. For example your list queue would become:-
2 3 4 7 9 7 10 ...
(Where 7 is the element being inserted in queue 2 3 4 9 ...)
EDIT:
Currently citing your previous code as I had reply already typed in earlier but just forgot to submit it.