A data-based inverse problem-solving method for predicting structural orderings