Out of Sorts
Indisposed, in bad spirits. The French locution is rather
remarkable —“Ne pas être dans son assictte.” “‘To sort’ is to
arrange in order, ‘a sort’ is one of the orders so sorted.”
Out of sorts.
In printers' language, means not having sufficient of some
particular letter, mark, or figure.
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894
More on Out of Sorts from Fact Monster: