Tôi có một XElement mà các bản đồ như sau:Sorting một XElement
<book>
<author>sadfasdf</author>
<title>asdfasdf</title>
<year>1999</year>
</book>
<book>
<author>asdfasdf</author>
<title>asdfasdf</title>
<year>1888</year>
</book>
<book>
<author>asdfsdf</author>
<title>asdfasdf</title>
<year>1777</year>
</book>
Làm thế nào tôi có thể sắp xếp những cuốn sách của tác giả hoặc tiêu đề hoặc năm? Cảm ơn
Tôi chỉ muốn sắp xếp lại nó. bạn có thể cung cấp một ví dụ thế giới thực? – pistacchio