From here calculating VaR, which is an α-percentile, is a straightforward procedure, which amounts to ordering values in an ascending order, and choosing  αN-th element.