getting sample data preserves the order in which the sample IDs are specified