<commit_before><?php

class ElementalArea extends WidgetArea {

	public function Elements() {
		$result = $this->getComponents('Widgets');

		$list = new HasManyList('BaseElement', $result->getForeignKey());
		$list->setDataModel($this->model);

		$list = $list->forForeignID($this->ID);

		return $list;
	}
}<commit_msg>Enure list is sorted.<commit_after><?php

class ElementalArea extends WidgetArea {

	public function Elements() {
		$result = $this->getComponents('Widgets');

		$list = new HasManyList('BaseElement', $result->getForeignKey());
		$list->setDataModel($this->model);
		$list->sort('Sort ASC');
		
		$list = $list->forForeignID($this->ID);

		return $list;
	}
}
{'fraction_non_alphanumeric': 0.17820324005891017, 'fraction_numerical': 0.0, 'mean_word_length': 5.296296296296297, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '749748', 'n_tokens_mistral': 239, 'n_tokens_neox': 217, 'n_words': 43}