---
title: "Discussion on \"Default Method of Array\" | Hashnode"
description: "Discussion on \"Default Method of Array\". 1. Array.Sort() 🧹: Sorts the elements of an array in ascending order.\nint[] numbers = { 3, 1, 4, 1, 5, 9 };\nArray.Sort(numbers); // numbers will be { 1, 1, 3, 4, 5, 9 }\n\n2. Array.Reverse() 🔄: Reverses the order of elements in an array.\nArray.Revers..."
url: "https://hashnode.com/posts/default-method-of-array/675ad81393a95b7e996fb8c8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Default Method of Array](https://intro-to-c-net-core.hashnode.dev/default-method-of-array?utm_source=hashnode&utm_medium=feed)

1\. Array.Sort() 🧹: Sorts the elements of an array in ascending order. int\[\] numbers = { 3, 1, 4, 1, 5, 9 }; Array.Sort(numbers); // numbers will be { 1, 1, 3, 4, 5, 9 } 2. Array.Reverse() 🔄: Reverses the order of elements in an array. Array.Revers...

Dec 12, 2024 · 1 min read · intro-to-c-net-core.hashnode.dev  
Read the article

-   [#array](https://hashnode.com/tag/array)
-   [#array-methods](https://hashnode.com/tag/array-methods)
-   [#arrays](https://hashnode.com/tag/arrays)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#csharp-beginners-dotnet-programming](https://hashnode.com/tag/csharp-beginners-dotnet-programming)
-   [#learn-coding](https://hashnode.com/tag/learn-coding)
-   [#sorting](https://hashnode.com/tag/sorting)
-   [#sort](https://hashnode.com/tag/sort)
-   [#reverse](https://hashnode.com/tag/reverse)
-   [#copy](https://hashnode.com/tag/copy)
-   [#index](https://hashnode.com/tag/index)
-   [#dotnet](https://hashnode.com/tag/dotnet)

## Written by

[Ahamad Basha NS](https://hashnode.com/@AhamadNSAB)

@AhamadNSAB

  
[View profile](https://hashnode.com/@AhamadNSAB)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
