Method for operating a cooking oven comprising: - a cooking chamber wherein foodstuff can be loaded; - a heating device for heating foodstuff contained in said cooking chamber; - a steam generator adapted to generate steam to be supplied to said cooking chamber; - a database wherein cooking cycles are stored, each cooking cycle having a pre-set starting temperature (Ti), a pre-set final temperature (Tf), a pre-set starting humidity (Hi), a pre-set final humidity (Hf); - a control unit operatively connected to said database and to said heating device and said steam generator, configured for activating/deactivating said heating device and/or said steam generator according to said cooking cycles; - a user interface operatively connected to said control unit, configured for allowing a user to interact with said control unit; characterized in that the method comprises the following phases: a) selecting, by said user interface, a new list of two or more of said cooking cycles stored in said database, to be executed in sequence; b) sorting, by said control unit, said cooking cycles of said new list, using a sorting algorithm that calculates the order of said cooking cycles of said new list taking to a prefixed result, at least partially related to the energy consumption, when performed in sequence, basing the calculation on said pre-set starting temperature (T i), said pre-set final temperature (Tf), said pre-set starting humidity (H i) and said pre-set final humidity (H f) of said cooking cycles of said new list, said prefixed result comprises a minimization of the overall energy consumption for executing in sequence all said cooking cycles of said new list, or a minimization of the overall energy consumption for executing in sequence all said cooking cycles of said new list, subordinate to one or more not-energy-related constraints, said sorting algorithm is configured for calculating the energy required for passing from a first cooking cycle to a second cooking cycle, as the result of a polynomial function which variables are or depend on the difference between said pre-set final temperature (Tf) of said first cooking cycle and said pre-set starting temperature (Ti) of said second cooking cycle and on difference between said pre-set final humidity (Hf) of said first cooking cycle and said pre-set starting humidity (Hi) of said second cooking cycle; c) displaying, via said user interface, a sorted list containing said cooking cycles of said new list, sorted according to phase b). - a cooking chamber wherein foodstuff can be loaded; - a heating device for heating foodstuff contained in said cooking chamber; - a steam generator adapted to generate steam to be supplied to said cooking chamber; - a database wherein cooking cycles are stored, each cooking cycle having a pre-set starting temperature (Ti), a pre-set final temperature (Tf), a pre-set starting humidity (Hi), a pre-set final humidity (Hf); - a control unit operatively connected to said database and to said heating device and said steam generator, configured for activating/deactivating said heating device and/or said steam generator according to said cooking cycles; - a user interface operatively connected to said control unit, configured for allowing a user to interact with said control unit; a) selecting, by said user interface, a new list of two or more of said cooking cycles stored in said database, to be executed in sequence; b) sorting, by said control unit, said cooking cycles of said new list, using a sorting algorithm that calculates the order of said cooking cycles of said new list taking to a prefixed result, at least partially related to the energy consumption, when performed in sequence, basing the calculation on said pre-set starting temperature (T i), said pre-set final temperature (Tf), said pre-set starting humidity (H i) and said pre-set final humidity (H f) of said cooking cycles of said new list, said prefixed result comprises a minimization of the overall energy consumption for executing in sequence all said cooking cycles of said new list, or a minimization of the overall energy consumption for executing in sequence all said cooking cycles of said new list, subordinate to one or more not-energy-related constraints, said sorting algorithm is configured for calculating the energy required for passing from a first cooking cycle to a second cooking cycle, as the result of a polynomial function which variables are or depend on the difference between said pre-set final temperature (Tf) of said first cooking cycle and said pre-set starting temperature (Ti) of said second cooking cycle and on difference between said pre-set final humidity (Hf) of said first cooking cycle and said pre-set starting humidity (Hi) of said second cooking cycle; c) displaying, via said user interface, a sorted list containing said cooking cycles of said new list, sorted according to phase b).