<jupyter_start><jupyter_text>Sort() List Method<jupyter_code>new_list = ['a', 'e', 'x', 'b', 'c']
num_list = [4, 1, 8, 3]
# It occurs inplace and hence returns nothing
new_list.sort()

sorted_arr = new_list.sort()
type(sorted_arr)
new_list
# None is nothing or no value returned
type(None)
num_list.sort()
num_list
num_list.reverse()
num_list<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14516129032258066, 'fraction_numerical': 0.010752688172043012, 'mean_word_length': 6.9361702127659575, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '554242', 'license': 'Apache-2.0', 'n_tokens_mistral': 154, 'n_tokens_neox': 150, 'n_words': 37, 'path': '01-Python-Objects-DS-Basics/.ipynb_checkpoints/21-List-checkpoint.ipynb', 'repo_name': 'porcelainruler/Python-Complete-Bootcamp-Practice', 'size': '372'}