# ONNX031: unsorted-function-nodes **Code:** `ONNX031` **Name:** `unsorted-function-nodes` **Severity:** error **Category:** spec **Target:** function **Fixable:** 🔧 Yes ## Message Function nodes are not in topological order. ## Suggestion Sort the function's nodes in topological order. ## Details Nodes within a function must be in topologically sorted order.