Sorry, I should have explained better. Was a bit rushed while I was in the office. I'll take the time to explain it now.
ORDER BY (COUNT(q.quote_id) WHERE q.status < 4)
is what I'm looking for
q.status is the status of a quote, if it be open, paid, shipped an so on. If the quote status is less then 4 its a "None Processed" quote.
This quotes table is linked to the members and INNER JOINED in this query (unfortuantly company wants database structure non public so can't post whole thing 🙁)
The basic ID though is
SELECT count(q.quote_id) FROM q.quotes INNER JOIN m.members ON q.member_id = m.member_id GROUP BY q.quote_id ORDER BY (COUNT(q.quote_id) WHERE q.status < 4)
so Olaf even though technically what you said is correct going off what I originally posted it will not work with this as I need to count total quotes but order by quotes which are not processed. Thank you anyways