weightOrder problem
untested algo ready