X-ray fluorescence and transmission have found common use in large-scale diamond sorting. These methods have progressed independently with each providing a solution for a specific range of particle size. Fluorescence is applicable for diamond sizes between 1.25 - 32 mm and is subject to self-absorption, while transmission has been used on diamond fractions between 10 mm - 100 mm. Transmission sorting suffers poor contrast at particle sizes below 10 mm. Parametric x-ray absorption fine structure models of fluorescence, with five describing features, and a transmission one with five parameters, are developed for both phenomena and simulated against literature for correctness. Furthermore, we define a new x-ray signature parameter by combining high-density ensemble data from both modes for a calibrated sample which we use as a benchmark in our sorting criteria. Finally, we construct random theoretical pure compounds and implore a fast noise rejecting Kolmogorov-Smirnov sorting algorithm to test random samples against the calibrated sample.