Revision ecd11bb0

b/autotools/build-rpc
125 125
        raise ValueError("Procedure %s has only %d elements, expected %d" %
126 126
                         (v[0], len(v), _RPC_DEF_LEN))
127 127

  
128
    for (name, kind, _, timeout, args, _, _, desc) in calls:
128
    for (name, kind, _, timeout, args, _, _, desc) in sorted(calls):
129 129
      funcargs = ["self"]
130 130

  
131 131
      if kind == _SINGLE:
......
201 201
      raise Exception("Found duplicate RPC definitions for '%s'" %
202 202
                      utils.CommaJoin(sorted(dups)))
203 203

  
204
    for (clsname, calls) in module.CALLS.items():
204
    for (clsname, calls) in sorted(module.CALLS.items()):
205 205
      _WriteBaseClass(sw, clsname, calls.values())
206 206

  
207 207
  print buf.getvalue()

Also available in: Unified diff